﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebApplication4.Domain.Entity;
using WebApplication4.Entity;

namespace WebApplication4.Domain
{
    public class Admin1000DbContext:DbContext
    {

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlServer("server=.;database=Admin1000;uid=sa;pwd=123456");
        }

        public DbSet<Fruits>Fruits { get; set; }

        public DbSet<Price> Prices { get; set; }
    }
}
